package com.cn.bdqn.javaoop03.demo8;

public class Truck extends MotoVehicle{
	private int  tonnage;
	
	public Truck(String no,String brand,int tonnage){
		super(no, brand);
		this.tonnage=tonnage;
		
	}

	public int getTonnage() {
		return tonnage;
	}
	
	public int calRent(int days){
		return tonnage*50*days;
		
	}

}
